using UnityEngine;
using System.Collections;

public class EvendPlaySound : MonoBehaviour {

    GUIButton button;

    public string m_SoundName = "Accept";
    void Start()
    {
        button = gameObject.GetComponent<GUIButton>();
        button.OnClickCallback += OnClick;
    }
    void OnClick(Vector3 pos)
    {
        SoundManager.Instance.PlaySound(m_SoundName, false);
    }
}
